﻿using Abp.Domain.Entities.Auditing;
using Camc.Quality.Bop;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.TrepanningManager.CollectBom
{
   public class CollectBomManagerChild : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 主表id
        /// </summary>
        [CanBeNull]
        public Guid? CollectBomManagerId { get; set; }
        /// <summary>
        /// bom主表id
        /// </summary>
        public Guid BomDesignId { get; set; }
        /// <summary>
        ///     物料id
        /// </summary>
        public Guid MaterialId { get; set; }
        /// <summary>
        /// 父级物料id
        /// </summary>
        public Guid ParentMaterialId { get; set; }
        /// <summary>
        ///     父级id
        /// </summary>
        public Guid ParentId { get; set; }
        /// <summary>
        ///     单位1BOM用量=单位净用量/(1-损耗率）
        /// </summary>
        public int Unit1BomDosage { get; set; }
        /// <summary>
        /// 层级关系
        /// </summary>
        public string LevelRelationship { get; set; }
        /// <summary>
        ///     层级
        /// </summary>
        public int LevelNum { get; set; } = 1;
        /// <summary>
        ///     状态
        /// </summary>
        public DocumentStatus Status { get; set; } = (DocumentStatus)5;
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 用于排序
        /// </summary>
        public int OrderNum { get; set; }
        /// <summary>
        /// 版本
        /// </summary>
        public string VersionNo { get; set; } = "001";
        /// <summary>
        /// 物料属性
        /// </summary>
        public int MaterialProperty { get; set; }
        /// <summary>
        /// 组件下的零件总用量
        /// </summary>
        public int BomDosageTotalAmount { get; set; }
        /// <summary>
        /// 变更id 和发起审批相关联
        /// </summary>
        public Guid ModifiChangeId { get; set; }
        /// <summary>
        /// 年代号 ,号串联
        /// </summary>
        public string YearsNo { get; set; }
    }
}
